home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / pipeline / pipedream / Documents / Functions / String < prev    next >
Encoding:
Text File  |  1991-10-09  |  2.7 KB  |  163 lines

  1. %OP%DP0
  2. %OP%LP*
  3. %OP%TM4
  4. %OP%BM4
  5. %OP%LM5
  6. %OP%FGSystem.Fixed
  7. %OP%WC2,1750,528,1364,0,1,0,0
  8. %OP%VS3.40R (11-Oct-90), Mrjc, R9200 7500 3900 8299 
  9. %CO:A,9,100%%C%%H1%String Functions Examples
  10.  
  11.  
  12. %C%Function
  13. Char
  14. Code
  15. Exact
  16. Find
  17. Join
  18. Left
  19. Length
  20. Lower
  21. Mid
  22. Proper
  23. Replace
  24. Rept
  25. Reverse
  26. Right
  27. String
  28. Trim
  29. Upper
  30. Value
  31. %CO:B,22,0%
  32.  
  33.  
  34. %C%Input 1
  35. %V%%C%65
  36. %V%%C%f5
  37. %C%PipeDream
  38. %C%nt
  39. %C%Colton 
  40. %C%Colton Software
  41. %C%Exponential
  42. %C%CoMPlicAtED
  43. %C%Corresponding
  44. %C%this is a TITLE
  45. %C%Password : Secret
  46. %C%Can 
  47. %C%Not a Palindrome
  48. %C%Colton Software
  49. %V%%C%65454
  50. %V%%C%"  Lots   of    space "
  51. %C%jUSt liKe tHAt
  52. %C%1000
  53. %CO:C,10,0%
  54.  
  55.  
  56. %C%Input 2
  57. %C%-
  58. %C%-
  59. %C%PipeDream
  60. %C%Ancient
  61. %C%Software
  62. %V%%C%6
  63. %C%-
  64. %C% -
  65. %V%%C%4
  66. %C%-
  67. %V%%C%12
  68. %V%%C%2
  69. %C%-
  70. %V%%C%9
  71. %V%%C%0
  72. %C%-
  73. %C%-
  74. %C%-
  75. %CO:D,8,0%
  76.  
  77.  
  78. %C%Input 3
  79. %C%-
  80. %C%-
  81. %C%-
  82. %V%%C%1
  83. %C%-
  84. %C%-
  85. %C%-
  86. %C%-
  87. %V%%C%7
  88. %C%-
  89. %V%%C%6
  90. %C%-
  91. %C%-
  92. %C%-
  93. %C%-
  94. %C%-
  95. %C%-
  96. %C%-
  97. %CO:E,12,0%
  98.  
  99.  
  100. %C%Input 4
  101. %C%       -
  102. %C%        -
  103. %C%         -
  104. %C%          -
  105. %C%- 
  106. %C%            -
  107. %C%             -
  108. %C%              -
  109. %C%               -
  110. %C%                -
  111. %C%n/a 
  112. %C%                  -
  113. %C%             -
  114. %C%              -
  115. %C%               -
  116. %C%                - 
  117. %C%                 -
  118. %C%-
  119. %CO:F,16,0%
  120.  
  121.  
  122. %C%Output
  123. %V%%C%char(b5)
  124. %V%%C%code(b6)
  125. %V%%C%exact(b7,c7)
  126. %V%%C%find(b8,c8,d8)
  127. %V%%C%join(b9,c9)
  128. %V%%C%left(b10,c10)
  129. %V%%C%length(b11)
  130. %V%%C%lower(b12)
  131. %V%%C%mid(b13,c13,d13)
  132. %V%%C%proper(b14)
  133. %V%%C%replace(b15,c15,d15,e15)
  134. %V%%C%rept(b16,c16)
  135. %V%%C%reverse(b17)
  136. %V%%C%right(b18,c18)
  137. %V%%C%string(b19,c19)
  138. %V%%C%trim(b20)
  139. %V%%C%upper(b21)
  140. %V%%C%value(b22)
  141. %CO:G,2,36%%CO:H,62,0%
  142.  
  143.  
  144. Summary
  145. converts ASCII value to character
  146. converts character to ASCII value
  147. compares two strings - 1 TRUE, 0 FALSE.
  148. Attempts to find first string within second, starting at %H4%Input3. Input3%H4% is optional
  149. Concatenates any number of strings onto the end of each other string.
  150. Returns the first %H4%Input2%H4% charaters of a string.
  151. Returns the length of a string.
  152. Converts a string to contain only lower case letters.
  153. Extracts %H4%Input3%H4% characters from a string, starting from %H4%Input2%H4%.
  154. Capitalises every letter in a string which does not follow another letter.
  155. Replaces part of the %H4%Input1%H4%, starting with %H4%Input2%H4% up to %H4%Input3%H4% with %H4%Input4%H4%
  156. Repeats a string %H4%Input2%H4% times to form a new string.
  157. Reverses  a string, character by character.
  158. Returns the last %H4%Input2%H4% characters of a string.
  159. Converts a number to a string, using %H4%Input2%H4% decimal places.%H4% Input2%H4% is optional.
  160. Strips all leading and trailing spaces and reduces multiple interior spaces to one.
  161. Converts a string to contain only upper case letters.
  162. Converts a string containing characters 0-9 to a number.
  163.